package com.yfp.operation.mapper;

import com.yfp.operation.domain.MarCouponCombo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 *
 * @description 针对表【mar_coupon_combo(优惠券+套餐关联表)】的数据库操作Mapper
 * @createDate 2024-07-16 16:20:49
 * @Entity domain.com.yfp.operation.MarCouponCombo
 */
public interface MarCouponComboMapper extends BaseMapper<MarCouponCombo> {

    /**
     * 根据优惠券id查询套餐id
     *
     * @param marCouponId
     * @return
     */
    List<MarCouponCombo> selectByMarCouponId(Long marCouponId);

    /**
     * 根据优惠券id查询套餐id
     *
     * @param marCouponIds
     * @return
     */
    List<MarCouponCombo> selectByMarCouponIds(List<Long> marCouponIds);

    /**
     * 新增
     * @param couponId
     * @param comboIdList
     */
    void add(@Param("couponId") Long couponId,@Param("comboIdList") List<String> comboIdList);

}




